define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");

	var Model = function(){
		this.callParent();
	};

	Model.prototype.modelParamsReceive = function(event){
		
		//alert(this.params.id);
		
		var datat = this.comp("baasData2");
		datat.setFilter("filter2", "nt_id = " +this.params.id);
 		datat.refreshData();
	};

	Model.prototype.listTemplateUl3Click = function(event){
	
		var n_id=this.comp("baasData1").val("n_id");
		justep.Shell.showPage(require.toUrl("../detail/detail.w"),{"id" : n_id});
	};

	return Model;
});